﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MG.HomeO2O.Model;
namespace MG.HomeO2O.DAL
{
   public class OrderDAL
    {
       EntityOP entity = new EntityOP();
       /// <summary>
       /// 下拉框显示
       /// </summary>
       /// <returns></returns>
       public List< MG.HomeO2O.Model.Type> listshow()
       {
           return entity.Type.ToList();
       }
       /// <summary>
       /// 添加
       /// </summary>
       /// <param name="p"></param>
       /// <returns></returns>
       public int add(Order p)
       {
           entity.Order.Add(p);
           return entity.SaveChanges();
       }
    }
}
